package com.mutual.assistance.user.model.vo;

import com.mutual.assistance.validation.ValidationGroups;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.List;

@Data
@ApiModel(value="添加角色表", description="添加角色")
public class AddRoleVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "角色名称")
    @NotBlank(message = "角色名称不能为空",groups = ValidationGroups.Insert.class)
    private String roleName;

    @ApiModelProperty(value = "角色编码")
    @NotBlank(message = "角色编码不能为空",groups = ValidationGroups.Insert.class)
    private String roleCode;

    @ApiModelProperty(value = "描述")
    private String description;

    @ApiModelProperty(value = "菜单资源id集合")
    List<String> menusId;
}
